import request from '@/utils/request'
import apiConfig from '@/api/config'

// 机构轮候床位使用率
export const getJGLHCWSYL = params => {
  return request({
    url: `${apiConfig.businessApi}/app-waiting-analysis/waiting`,
    method: 'get',
    params
  })
}

// 社区居家养老服务项目设施总体情况-综合统计
export const getSQJJYLFWXMSS = params => {
  return request({
    url: `${apiConfig.businessApi}/app-home-analysis/home`,
    method: 'get',
    params
  })
}

// 社区居家区域分布
export const get_area_data = params => {
  return request({
    url: `${apiConfig.businessApi}/app-home-analysis/home-area`,
    method: 'get',
    params
  })
}

// 养老服务床位区域-综合统计
export const getYLFWCWQY = params => {
  return request({
    url: `${apiConfig.businessApi}/app-bed-analysis/bed`,
    method: 'get',
    params
  })
}

// 星级评定-综合统计
export const getXJPD = params => {
  return request({
    url: `${apiConfig.businessApi}/app-rating-analysis/rating`,
    method: 'get',
    params
  })
}


// 星级评定列表-综合统计
export const getXJPDListByLevel = params => {
  return request({
    url: `${apiConfig.businessApi}/app-rating-analysis/rating-list`,
    method: 'get',
    params
  })
}

// 星级评定区域分布
export const get_area_start = params => {
  return request({
    url: `${apiConfig.businessApi}/app-rating-analysis/rating-area`,
    method: 'get',
    params
  })
}

// 时间银行综合统计
export const get_timeBank_total = params => {
  return request({
    url: `${apiConfig.businessApi}/app-volunteer-analysis/volunteer`,
    method: 'get',
    params
  })
}

// 时间银行排名列表
export const get_timeBank_list = params => {
  return request({
    url: `${apiConfig.businessApi}/app-volunteer-analysis/volunteer-list`,
    method: 'get',
    params
  })
}

